<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Update Notice</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="/css/iconfont.css">
    <link rel="stylesheet" href="/css/reader_searchbook.css">
    <link rel="stylesheet" href="/css/bootstrap.min.css" >
    <link rel="stylesheet" href="/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="/css/some.css">
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.js"></script>
    <script src="/js/bootstrap.min.js" type="application/javascript"></script>
</head>
<body>
<header class="header clearfix">
    <i class="iconfont icon-yun"></i>
    <i>Library</i>
    <a style="cursor: pointer;font-size: 19px;" onclick="javascript:history.back(-1);" >Back to Home</a>
</header>
<div class="container-fluid main" style="width: auto;margin-top: 58px;margin-bottom: 26px;">
    <h2><span class="glyphicon glyphicon-send" aria-hidden="true"></span>Update Notice</h2>
    <hr>

    <form action="/notice/updatenotice" method="post">
        <div class="form-group">
            <label for="title">Notice Title:</label>
            <textarea name="title" id="title"  th:text="${session.notice.title}" class="form-control" cols="30" rows="5"></textarea>
        </div>
        <div class="form-group">
            <label for="title">Notice Content:</label>
            <textarea name="detail" id="detail"  th:text="${session.notice.detail}" class="form-control" cols="30" rows="10"></textarea>
        </div>
        <div class="container-fluid main" style="width: auto;">
            <div class="row">
                <div class="alert alert-danger col-lg-6 col-md-12 col-sm-12 col-xs-12" th:text="${error}" style="margin-bottom: 80px;"></div>
                <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
                    <button type="submit" class="btn btn-success btn-publish">Update</button>
                    <a href="javascript:void(0)" th:href="@{/notice/delete}" class="btn btn-warning" style="margin-left: 350px;">Delete</a>
                </div>
            </div>
        </div>
    </form>
</div>

<footer class="footer">
    <div class="mandarin">
        <img src="/images/mandarin.png" alt="">
    </div>
    <p>Shan ICP number18018134 | Powered by 1713011</p>
</footer>

<div id="tanchuceng">
    <div id="msg">
        <div id="exit" onclick="exit()">x</div>
        <p id="message"></p>
    </div>
</div>
</body>
